﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MaxLeaf.Common;
using MaxLeaf.DB;
using System.Data;
using MySql.Data.MySqlClient;
using System.Data.SqlClient;

namespace MaxLeaf.DAL.W2K
{
    public class SEOrderDAL: BaseDAL 
    {
        W2K.OeSalesOrderDAL.FromType mFromType = new W2K.OeSalesOrderDAL.FromType();
        public override int Add(DBAccess dbOrgWebReadCon, DBAccess dbOrgWebWriteCon, DBAccess dbCon, string strKeyValue)
        {
            mFromType = W2K.OeSalesOrderDAL.FromType.SEOrder;            
            new W2K.OeSalesOrderDAL().Add( dbOrgWebReadCon,  dbOrgWebWriteCon, dbCon, strKeyValue, mFromType);
            return 1;
        }
        public override int Update(DBAccess dbOrgWebReadCon, DBAccess dbOrgWebWriteCon, DBAccess dbCon, string strKeyValue)
        {
            mFromType = W2K.OeSalesOrderDAL.FromType.SEOrder;
            new W2K.OeSalesOrderDAL().Update(dbOrgWebReadCon,  dbOrgWebWriteCon, dbCon, strKeyValue, mFromType);
            return 1;
        }
        public void Delete(DBAccess dbOrgWebReadCon, DBAccess dbOrgWebWriteCon, DBAccess dbCon, string strKeyValue)
        {
            mFromType = W2K.OeSalesOrderDAL.FromType.SEOrder;
            new W2K.OeSalesOrderDAL().Delete(dbOrgWebReadCon,  dbOrgWebWriteCon, dbCon, strKeyValue, mFromType);
        }
    }
}